package org.jeecg.modules.oauth.xkwoauth.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: sys_third_oauth_relationship
 * @author: baochangrong
 * @Date:   2022-08-18
 * @Version: V1.0
 */
@Data
@TableName("sys_third_oauth_relationship")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="sys_third_oauth_relationship对象", description="sys_third_oauth_relationship")
public class SysThirdOauthRelationship implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**系统用户id*/
	@Excel(name = "系统用户id", width = 15)
    @ApiModelProperty(value = "系统用户id")
    @Dict(dicCode = "username",dicText = "id",dictTable = "sys_user")
    private String sysUserId;
	/**第三方用户id*/
	@Excel(name = "第三方用户id", width = 15)
    @ApiModelProperty(value = "第三方用户id")
    private String thirdOpenid;
	/**第三方app用户账号*/
	@Excel(name = "第三方app用户账号", width = 15)
    @ApiModelProperty(value = "第三方app用户账号")
    private String thirdUserId;
	/**第三方账号（手机号、邮箱、用户名等）*/
	@Excel(name = "第三方账号（手机号、邮箱、用户名等）", width = 15)
    @ApiModelProperty(value = "第三方账号（手机号、邮箱、用户名等）")
    private String thirdUserName;
	/**真实姓名*/
	@Excel(name = "真实姓名", width = 15)
    @ApiModelProperty(value = "真实姓名")
    private String realname;
	/**第三方类型：字典码[third_type]，xkw学科网*/
	@Excel(name = "第三方类型：字典码[third_type]，xkw学科网", width = 15)
    @ApiModelProperty(value = "第三方类型：字典码[third_type]，xkw学科网")
    @Dict(dicCode = "third_type")
    private String thirdType;
	/**开始时间*/
	@Excel(name = "开始时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "开始时间")
    private Date thirdStartTime;
	/**结束时间*/
	@Excel(name = "结束时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "结束时间")
    private Date thirdEndTime;
	/**是否启用（0否停用，1是启用）*/
	@Excel(name = "是否启用（0否停用，1是启用）", width = 15)
    @ApiModelProperty(value = "是否启用（0否停用，1是启用）")
    @Dict(dicCode = "iz_open")
    private Integer izOpen=1;
	/**是否删除（0否 1是已删除）*/
	@Excel(name = "是否删除（0否 1是已删除）", width = 15)
    @ApiModelProperty(value = "是否删除（0否 1是已删除）")
    @Dict(dicCode = "iz_delete")
    private Integer izDelete=0;
	/**学校编码*/
	@Excel(name = "学校编码", width = 15)
    @ApiModelProperty(value = "学校编码")
    @Dict(dicCode = "name",dicText = "id",dictTable = "sys_tenant")
    private String tenantId;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
    private String createUser;
	/**编辑时间*/
	@Excel(name = "编辑时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "编辑时间")
    private Date editTime;
	/**编辑人*/
	@Excel(name = "编辑人", width = 15)
    @ApiModelProperty(value = "编辑人")
    private String editUser;
}
